<div class="center_content">
    <div>
        <table>
            <tr>
                <td class="title_message_td not-border align_left">
                    <h2><?=__(LANG_ADMIN_EDIT)?></h2>
                </td>
                <td class="pass_change_fail">
                    <?php if(!empty($admin_error['new_pass'])) {?>
                        <?=$admin_error['new_pass']?>
                    <?php } else if(!empty($admin_error['pass'])){?>
                        <?=$admin_error['pass']?>
                    <?php } else if(!empty($admin_error['empty'])){?>
                        <?=$admin_error['empty']?>
                    <?php }?>
                </td>
            </tr>
        </table>
    </div>
    <table>
        <tr>
            <td class="admin_edit_td"><strong><?=__(LANG_ADMIN_ID)?></strong></td>
            <td class="align_left">
                <?php echo $this->Form->create('admin_member', array('onsubmit' => 'return confirm('.'"'.__(LANG_SAVE_READY).'");')); ?>
                <?=__($admin_info['tbl_admin_member']['admin_id']); ?>
            </td>
        </tr>
        <tr>
            <td>
                <?php if(!empty($admin_error['pass']) || !empty($admin_error['empty'])){?>
                    <strong class="error_message"><?=__(LANG_ADMIN_PASS)?></strong>
                <?php } else {?>
                    <strong><?=__('현재 비밀번호 입력')?></strong>
                <?php }?>
            </td>
            <td colspan="3">
                <?php echo $this->Form->input('admin_pass', array(
                    'label' => false,
                    'type' => 'password',
                    'value' => empty($new_admin_info['tbl_admin_member']['admin_pass']) ?
                            '' : ($new_admin_info['tbl_admin_member']['admin_pass'])
                )); ?>
            </td>
        </tr>
        <tr>
            <td>
                <?php if(!empty($admin_error['new_pass']) || !empty($admin_error['empty'])){?>
                    <strong class="error_message"><?=__(LANG_ADMIN_NEW_PASS)?></strong>
                <?php } else {?>
                    <strong><?=__(LANG_ADMIN_NEW_PASS)?></strong>
                <?php }?>
            </td>
            <td colspan="3">
                <?php echo $this->Form->input('admin_new_pass', array(
                    'label' => false,
                    'type' => 'password',
                    'value' => empty($new_admin_info['tbl_admin_member']['admin_new_pass']) ?
                            '' : $new_admin_info['tbl_admin_member']['admin_new_pass']
                )); ?>
            </td>
        </tr>
        <tr>
            <td>
                <?php if(!empty($admin_error['new_pass']) || !empty($admin_error['empty'])){?>
                    <strong class="error_message"><?=__(LANG_ADMIN_PASS_CONF)?></strong>
                <?php } else {?>
                    <strong><?=__(LANG_ADMIN_PASS_CONF)?></strong>
                <?php }?>
            </td>
            <td colspan="3">
                <?php echo $this->Form->input('admin_pass_conf', array(
                    'label' => false,
                    'type' => 'password',
                    'value' => empty($new_admin_info['tbl_admin_member']['admin_pass_conf']) ?
                            '' : $new_admin_info['tbl_admin_member']['admin_pass_conf']
                )); ?>
            </td>
        </tr>
        <tr>
            <td>
                <?php if(!empty($admin_error['empty'])){?>
                    <strong class="error_message"><?=__(LANG_ADMIN_BELONG)?></strong>
                <?php } else {?>
                    <strong><?=__(LANG_ADMIN_BELONG)?></strong>
                <?php }?>
            </td>
            <td colspan="3">
                <?php echo $this->Form->input('admin_belong', array(
                    'label' => false,
                    'type' => 'text',
                    'value' => (empty($new_admin_info['tbl_admin_member']['admin_belong']) ?
                            $admin_info['tbl_admin_member']['admin_belong'] : $new_admin_info['tbl_admin_member']['admin_belong'])
                ));?>
            </td>
        </tr>
        <tr>
            <td>
                <?php if(!empty($admin_error['empty'])){?>
                    <strong class="error_message"><?=__(LANG_ADMIN_NAME)?></strong>
                <?php } else {?>
                    <strong><?=__(LANG_ADMIN_NAME)?></strong>
                <?php }?>
            </td>
            <td colspan="3">
                <?php echo $this->Form->input('admin_name', array(
                    'label' => false,
                    'type' => 'text',
                    'value' => (empty($new_admin_info['tbl_admin_member']['admin_name']) ?
                            $admin_info['tbl_admin_member']['admin_name'] : $new_admin_info['tbl_admin_member']['admin_name'])
                )); ?>
            </td>
        </tr>
    </table>
</div>

<div class="center_bottom_content">
    <table class="actions">
        <tr>
            <td class="not-border-header button_right">
                <?php echo $this->Form->end(__(LANG_SAVE)); ?>
            </td>
            <td class="not-border-header button_left link_padding">
                <?php echo $this->Html->link(__(LANG_CANCEL), array('controller' => 'Admin', 'action' => 'admin_list'));?>
            </td>
        </tr>
    </table>
</div>